import axios from 'axios';
import ElementPlus from 'element-plus';
import { createPinia } from "pinia"; //引入pinia
import piniaPluginPersistedstate from "pinia-plugin-persistedstate"; //pinia 持久化
import { createApp } from 'vue';
import VueAxios from 'vue-axios';
import App from './App.vue';
import router from './router/index';

import 'element-plus/dist/index.css';
import './styles/index.less';

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate); //pinia数据持久化
const app=createApp(App)
app.use(pinia); //pinia 挂载到vue 实例上
app.use(VueAxios,axios)
app.use(ElementPlus)
app.use(router)
app.mount('#app')

